package com.ayi.bean;

import java.util.List;

/**
 * @author Ayingzz
 * @create 2021/11/28 13:22
 */
public class Cart {

    String usernameInCart; // 用户名
    List<Book> listInCart; // 购物车

    public Cart() {
    }

    public Cart(String usernameInCart, List<Book> listInCart) {
        this.usernameInCart = usernameInCart;
        this.listInCart = listInCart;
    }

    public String getUsernameInCart() {
        return usernameInCart;
    }

    public void setUsernameInCart(String usernameInCart) {
        this.usernameInCart = usernameInCart;
    }

    public List<Book> getListInCart() {
        return listInCart;
    }

    public void setListInCart(List<Book> listInCart) {
        this.listInCart = listInCart;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "usernameInCart='" + usernameInCart + '\'' +
                ", listInCart=" + listInCart +
                '}';
    }
}
